﻿@model AexoManager.Datos.Productos

@{
    ViewBag.Title = "Nuevo";
    Layout = "~/Views/Shared/_Template.cshtml";
}
@section ClientScripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type='text/javascript'>
        $(function () {
            $('#tblPrecio').dataTable({
                "bAutoWidth": false,
                "bPaginate": false,
                "bDestroy": true,
                "bFilter": false,
                "bInfo": false
            });
            $('.dataTables_length select').addClass('form-control');

        });

    </script>

}
<div id="page-content">
    <div id='wrap'>
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h4>Producto</h4>

                        </div>
                        <div class="panel-body">
                            <h3>Nuevo</h3>
                            <p></p>
                            <br>
                            @using (Html.BeginForm(null, null, FormMethod.Post, new { @class = "form-horizontal" }))
                            {
                                @Html.AntiForgeryToken()
                                @Html.ValidationSummary(true)
                                <div class="form-group">
                                    <label for="focusedinput" class="col-sm-3 control-label">@Html.LabelFor(model => model.Codigo)</label>
                                    <div class="col-sm-6">
                                        @Html.TextBoxFor(model => model.Codigo, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Codigo)
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="focusedinput" class="col-sm-3 control-label">@Html.LabelFor(model => model.Descripcion)</label>
                                    <div class="col-sm-6">
                                        @Html.TextBoxFor(model => model.Descripcion, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Descripcion)
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="focusedinput" class="col-sm-3 control-label">@Html.LabelFor(model => model.Precio)</label>
                                    <div class="col-sm-6">
                                        @Html.TextBoxFor(model => model.Precio, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Precio)
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <div class="panel panel-sky">
                                            <table width="100%" cellpadding="0" cellspacing="0" border="0" class=" table-responsive table-striped table-bordered datatables" id="tblPrecio">
                                                <thead>
                                                    <tr>
                                                        <th width="40%">Fecha Desde</th>
                                                        <th width="30%">Costo</th>
                                                        <th width="30%">Precio</th>
                                                    </tr>
                                                </thead>

                                            </table>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel-footer">
                                    <div class="row">
                                        <div class="col-sm-6 col-sm-offset-3">
                                            <div class="btn-toolbar">
                                                <input type="submit" class="btn-primary btn">
                                                @Html.ActionLink("Back to List", "Index")
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            }
                        </div>

                    </div>
                </div>
            </div>
        </div> <!-- row -->
    </div> <!--wrap -->
</div> <!-- page-content -->